package com.andy.qhb.vo;

public class HFriend {

	private Long id;
	
	private String name;
	
	private String icon;

	public HFriend(Long id, String name, String icon) {
		this.id = id;
		this.name = name;
		this.setIcon(icon);
	}

	public Long getId() {
		return id;
	}

	public void setId(Long uid) {
		this.id = uid;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}
	
	@Override
	public int hashCode() {
		return this.id.hashCode();
	}
	
	@Override
	public boolean equals(Object obj) {
		if(obj == null) return false;
		if(obj instanceof HFriend){
			return this.id.equals(((HFriend) obj).getId());
		}
		return false;
	}

	public String getIcon() {
		return icon;
	}

	public void setIcon(String icon) {
		this.icon = icon;
	}
	
}
